package com.ctbri.io;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import com.ctbri.util.BinaryFile;

public class Ex19 {

	public static void main(String[] args) throws IOException {
		byte[] bytes = BinaryFile.read("C:/HPDIU.log");
		Map<Byte, Integer> byteCount = new HashMap<>();
		for(byte data : bytes) {
			Integer count = byteCount.get(data);
			byteCount.put(data, count == null ? 1 : count + 1);
		}
		System.out.println(byteCount);
	}

}
